import request from '@/utils/request'

const userBastUrl = '/dms_purchase/yycgypmlb'

export function getYycgypmlbList(data) {
  console.log(data);
  return request({
    url: userBastUrl + '/list',
    method: 'post',
    data: data || {}
  })
}

export function save(data) {
  return request({
    url: userBastUrl,
    method: 'post',
    data: data || {}
  })
}

export function saveList(data) {
  console.log(data);

  return request({
    url: '/dms_supervision/yycgypmlb/save/list',
    method: 'post',
    data: data || {}
  })
}


export function update(data) {
  return request({
    url: userBastUrl,
    method: 'put',
    data: data || {}
  })
}

export function updateList(data) {
  console.log(data);
  return request({
    url: userBastUrl + '/list',
    method: 'put',
    data: data || {}
  })
}

export function del(id) {
  return request({
    url: userBastUrl + '/' + id,
    method: 'delete',
  })
}


export function delList(ids) {
  return request({
    url: userBastUrl + '/list',
    method: 'delete',
    data: ids || {}
  })
}

